package com.tebiecloud.goods.server.service;

import com.tebiecloud.goods.client.model.entity.GoodsSpecification;
import com.tebiecloud.common.mybatis.base.service.IBaseService;

import java.util.Map;

/**
 * 商品的规格信息 服务类
 * @author tebie
 * @date 2019-09-12
 */
public interface GoodsSpecificationService extends IBaseService<GoodsSpecification> {

    /**
     * 扣减库存的
     * @param goodsSpecificationId
     * @param amount
     * @return
     */
   Map<String,String> updateStockQty(long goodsSpecificationId,int amount);

    /**
     * 更新销量
     * @param goodsSpecificationId
     * @param salesVolume
     * @return
     */
    Map<String,String> updateSalesVolume(long goodsSpecificationId,int salesVolume);

}
